package com.jingdianjichi.subject.domain.service;

import com.jingdianjichi.subject.common.entity.PageResult;
import com.jingdianjichi.subject.domain.entity.SubjectCategoryBO;
import com.jingdianjichi.subject.domain.entity.SubjectInfoBO;
import com.jingdianjichi.subject.infra.basic.entity.SubjectInfoEs;

import java.util.List;

/**
 * 题目领域服务
 */
public interface SubjectInfoDomainService {

    //新增题目
    void add(SubjectInfoBO subjectInfoBO);

    //分页查询题目列表
    PageResult<SubjectInfoBO> getSubjectPage(SubjectInfoBO subjectInfoBO);

    //查询题目详情
    SubjectInfoBO querySubjectInfo(SubjectInfoBO subjectInfoBO);

    //全文检索
    PageResult<SubjectInfoEs> getSubjectPageBySearch(SubjectInfoBO subjectInfoBO);

    //获取题目贡献榜
    List<SubjectInfoBO> getContributeList();
}
